package com.ruoyi.mapper;

import java.util.List;
import com.ruoyi.domain.Comment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 评论Mapper接口
 *
 * @author qyb
 * @date 2023-12-26
 */

@Mapper
public  interface  CommentMapper
{
    @Select("select * from sys_comment where book_id = #{id}")
    List<Comment> selectComment(@Param("id") Long id);

    @Select("select * from sys_comment where book_id =#{id}")
    List<Comment> select(Long id);
}
